package models;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;

import utils.SosUtils;


public class UserPanelModel {

	public void drawUserPanel(JTabbedPane tabbedPane) {
		SosUtils utils = new SosUtils();
		ImageIcon user = utils.createImageIcon("images/user.png");
		JPanel mainUserPanel = new JPanel();
		tabbedPane.addTab("New tab", user, mainUserPanel, null);
		mainUserPanel.setLayout(null);
		
		JLabel lblUsername = new JLabel("Username");
		lblUsername.setBounds(10, 28, 69, 14);
		mainUserPanel.add(lblUsername);
		
		JTextField textField_15 = new JTextField();
		textField_15.setBounds(153, 25, 248, 20);
		mainUserPanel.add(textField_15);
		textField_15.setColumns(10);
		
		JLabel lblEmail = new JLabel("Email");
		lblEmail.setBounds(10, 53, 46, 14);
		mainUserPanel.add(lblEmail);
		
		JLabel lblStatus = new JLabel("Status");
		lblStatus.setBounds(10, 78, 46, 14);
		mainUserPanel.add(lblStatus);
		
		JLabel lblRechte = new JLabel("Rechte");
		lblRechte.setBounds(10, 103, 46, 14);
		mainUserPanel.add(lblRechte);
		
		JLabel lblSerien = new JLabel("Serien");
		lblSerien.setBounds(10, 128, 46, 14);
		mainUserPanel.add(lblSerien);
		
		JTextField textField_16 = new JTextField();
		textField_16.setColumns(10);
		textField_16.setBounds(153, 50, 248, 20);
		mainUserPanel.add(textField_16);
		
		JTextField textField_17 = new JTextField();
		textField_17.setBounds(153, 75, 248, 20);
		mainUserPanel.add(textField_17);
		textField_17.setColumns(10);
		
		JTextField textField_18 = new JTextField();
		textField_18.setBounds(153, 100, 248, 20);
		mainUserPanel.add(textField_18);
		textField_18.setColumns(10);
		
		JList list_7 = new JList();
		list_7.setBounds(153, 127, 248, 185);
		mainUserPanel.add(list_7);
		
		JButton btnNewButton_3 = new JButton("\u00C4nderungen speichern");
		btnNewButton_3.setBounds(436, 24, 148, 23);
		mainUserPanel.add(btnNewButton_3);
	}
	
}
